
<h1>Projects List</h1>

<table>
  <thead>
    <tr>
      <th>Projectid</th>
      <th>Project Name</th>
      <th>Description</th>
      <th>Createdate</th>
      <th>Start Date</th>
      <th>End Date</th>
      <th>Createdby</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($projects as $project): ?>
    <tr>    
      <td>
      <a href="<?php echo url_for('project/show?projectid='.$project->getProjectid())?>">
	  <?php echo $project->getProjectid() ?></a></td>
      <td><?php echo $project->getProjectname() ?></td>
      <td><?php echo $project->getDescription() ?></td>
      <td><?php echo $project->getCreatedate() ?></td>
      <td><?php echo $project->getStartdate() ?></td>
      <td><?php echo $project->getEnddate() ?></td>
      <td><?php echo $project->getUser()->getName() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('project/new') ?>">New</a>
